.class Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;
.super Ljava/lang/Object;
.source "ElementWorkspaceSwitcher.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/ElementWorkspaceSwitcher;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)V
    .locals 0
    .parameter

    .prologue
    .line 215
    iput-object p1, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onEffectFinish(Lcom/nemustech/tiffany/world/TFObject;)V
    .locals 9
    .parameter "object"

    .prologue
    const/4 v8, 0x2

    const v5, -0x42333333

    const/4 v4, 0x1

    const/4 v1, 0x0

    const/4 v3, 0x0

    .line 218
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$100(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    move-result-object v0

    invoke-virtual {v0, v8}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->getLocation(I)F

    move-result v0

    cmpl-float v0, v0, v5

    if-eqz v0, :cond_0

    .line 252
    :goto_0
    return-void

    .line 222
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0, v3}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$502(Lcom/nemustech/regina/ElementWorkspaceSwitcher;Z)Z

    .line 224
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$100(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    move-result-object v0

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 225
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$100(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->setVisibility(Z)V

    .line 226
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$100(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$workspaceSwitcherHolder;->lock()V

    .line 227
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$300(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementLocator;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFHolder;->getHeadItemIndex()I

    move-result v6

    .line 228
    .local v6, headItemIndex:I
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$300(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementLocator;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/nemustech/regina/ElementLocator;->distributeWorkspaceViews(I)V

    .line 229
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$300(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/ElementLocator;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v7

    .line 230
    .local v7, workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v7, v3}, Lcom/nemustech/regina/RGWorkspace;->convertToAnimationObjects(Z)V

    .line 232
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/nemustech/regina/RGWorkspaceHolder;->setVisibility(Z)V

    .line 233
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 234
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 235
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v8}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 237
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v1, v1, v5}, Lcom/nemustech/regina/RGWorkspaceHolder;->locate(FFF)V

    .line 238
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    const-wide/16 v4, 0x64

    move v2, v1

    move v3, v1

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/regina/RGWorkspaceHolder;->move(FFFJ)V

    .line 239
    iget-object v0, p0, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;->this$0:Lcom/nemustech/regina/ElementWorkspaceSwitcher;

    invoke-static {v0}, Lcom/nemustech/regina/ElementWorkspaceSwitcher;->access$600(Lcom/nemustech/regina/ElementWorkspaceSwitcher;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    new-instance v1, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;

    invoke-direct {v1, p0, v7}, Lcom/nemustech/regina/ElementWorkspaceSwitcher$3$1;-><init>(Lcom/nemustech/regina/ElementWorkspaceSwitcher$3;Lcom/nemustech/regina/RGWorkspace;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/RGWorkspaceHolder;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    goto/16 :goto_0
.end method
